package serverapp;

/**
 *
 * @author a
 */
public class Team {

    public int id;
    public String name;
    public String country;
    public String league;
    public Coach coach;
    public int successAttacks;
    public int blockedAttacks;
    public int failedAttacks;
    public int successBlocks;
    public int defendedBlocks;
    public int failedBlocks;
    public int serveAces;
    public int receivedServes;
    public int failedServes;
    public int receivesToNet;
    public int bouncedReceives;
    public int failedReceives;
    public int defencesNet;
    public int bouncedDefences;
    public int failedDefences;
    public int singleBlockPasses;
    public int tripleBlockPasses;
    public int failedPasses;

    Team(int aId, String aName, String aCountry, String aLeague, Coach aCoach) {
        id = aId;
        name = aName;
        country = aCountry;
        league = aLeague;
        coach = aCoach;
    }

    public String getName() {
        return name;
    }

    Team(int aId, String aName, String aCountry, String aLeague, int aSuccessAttacks, int aBlockedAttacks, int aFailedAttacks, int aSuccessBlocks, int aDefendedBlocks, int aFailedBlocks, int aServeAces, int aReceivedServes, int aFailedServes, int aReceivesToNet, int aBouncedReceives, int aFailedReceives, int aDefencesNet, int aBouncedDefences, int aFailedDefences, int aSingleBlockPasses, int aTripleBlockPasses, int aFailedPasses) {
        id = aId;
        name = aName;
        country = aCountry;
        league = aLeague;
        successAttacks = aSuccessAttacks;
        blockedAttacks = aBlockedAttacks;
        failedAttacks = aFailedAttacks;
        successBlocks = aSuccessBlocks;
        defendedBlocks = aDefendedBlocks;
        failedBlocks = aFailedBlocks;
        serveAces = aServeAces;
        receivedServes = aReceivedServes;
        failedServes = aFailedServes;
        receivesToNet = aReceivesToNet;
        bouncedReceives = aBouncedReceives;
        failedReceives = aFailedReceives;
        defencesNet = aDefencesNet;
        bouncedDefences = aBouncedDefences;
        failedDefences = aFailedDefences;
        singleBlockPasses = aSingleBlockPasses;
        tripleBlockPasses = aTripleBlockPasses;
        failedPasses = aFailedPasses;
    }
}
